package com.gxa.zhonglong.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

/**
 * Created with IntelliJ IDEA.
 *
 * @author : 宸濯
 * Date: 2021/10/30 13:59
 * Description:积分规则
 * Version: V1.0
 */
@Data
@ApiModel("积分规则实体类")
@NoArgsConstructor
@AllArgsConstructor
public class PointsRule {
    @ApiModelProperty("编号")
    private Long id;
    @ApiModelProperty("商品名称")
    private String goodsName;
    @ApiModelProperty("销售计价")
    private String saleValuation;
    @ApiModelProperty("商品类型")
    private String goodsType;
    @ApiModelProperty("价格类型")
    private String priceType;
    @ApiModelProperty("积分系数")
    private Long pointsCoefficient;
    @ApiModelProperty("开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Timestamp startTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty("结束时间")
    private Timestamp endTime;
    @ApiModelProperty("是否启用")
    private Boolean state;
}
